<h1>Add the free time of <%= @user.name %></h1>

<%= form_tag :action => 'submit', :uid => @user.id, :id => @event.id %>
	<% if @frees.blank? %>
		<p>You currently do not have any Free Time for this Event.</p>
	<% else %>
		<p>Your current Free Time:</p>
		<ul id="frees">
		<% @frees.each do |f| %>
			<li><%= f.date_begin %> to <%= f.date_begin %>+30</li>
		<% end %>
		</ul>
	<% end %>

	<p><%= link_to 'Add Free Time', {:controller => 'endar_user_time', :action => 'new', :uid => @user.id, :id => @event.id} %>	<%= link_to 'Add via .ics', {:controller => 'endar_user_time', :action => 'parseIcal', :uid => @user.id, :id => @event.id}%></p>
	<%= submit_tag "Submit" %>
<%= %>

<p><%= link_to 'Back', {:action => 'new', :id => @event.id} %></p>
